package com.zhouheng.common.filestore.service;

import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.Min;
import java.io.InputStream;

@Validated
public interface FileStoreService {
    void upload(String object, InputStream source, @Min(value = 1, message = "上传文件大小必须大于零， 请确认") long size);

    InputStream download(String object);

    String getFileUrl(String object);
}
